import papertiger

def test(event):
  print("overriding")


pwindows = papertiger.analyzeImage("pt.png")
assert len(pwindows) > 0, "No window found"

#pwindows[0].preview()
pwindows[0].getSubComponent("0").leftdown = test

papertiger.loadWindowAndStart(pwindows[0])


